package cn.sockstack.service.Impl;

import cn.sockstack.dao.UserMapper;
import cn.sockstack.entity.User;
import cn.sockstack.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;
    @Override
    public int create(User user) {
        return userMapper.insert(user);
    }

    @Override
    public User detail(User user) {
        return userMapper.selectOne(user);
    }
}
